<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar bar-nav">
          <h1 class="title pull-left" style="width: 45%; font-size: 1.2rem; color: #F36767;">支付成功!</h1>
          <p class="pull-right" style="width: 55%; font-size: .6rem; line-height: .8rem; margin: .3rem 0;">客服会在1个工作日内联系您！稍安勿躁~</p>
        </header>
        
        <div class="content" style="top: 2.2rem;">
          
          <div class="header-wrap" style="background-color: #fff; padding-top: .1rem;">
            
            <div class="form-header">
                <h3>健康调查</h3>
                <p>在正式开营之前，我们需要做一份健康调查：<br/>
                请认真阅读，填写问题，这些资料对于我们对您的服务非常重要</p>
            </div>

            <form class="" method = 'post'  action = '${ctx.host}/shop/health' >
              
              <input type="hidden" name="orderId" value="${param.order}">
              <input type="hidden" name="_method" value="PATCH">
              
              <div class="list-block health-bg">
                <ul class="health-list" style="padding-bottom:.5rem;">
                  <li class="headlt-list-title">个人疾病史(如有以下疾病运动损伤史或其他，请一定备注说明）</li>
                  <li class="illness">
                       <span style="font-size: .7rem;color: #A9A9A9">
                                                                              心脏病；<br/>
                                                                             骨质疏松症；<br/>
                                                                             血糖及血压疾病；<br/>
                                                                             痛风；<br/>
                                                                            肾结石；<br/>
                                                                            严重的慢性并发症，如心脏，肾，视网膜病变，严重下肢血管病变，植物神经功能障碍等；<br/>
                                                                             肝炎、肾炎等疾病；<br/>
                                                                            手术完仍处于康复期的患者，比如韧带撕裂康复、骨折康复、半月板损伤康复等；<br/>
                                                                             脊椎及关节变形或损伤、肢体重要骨骼有过骨折史；<br/>
                                                                            其他已知或未知的不适应大强度运动的疾病<br/>
                       </span> 
                       <div class="illness-label">
                            <p>请确认是否患有如上疾病情况？</p>
                            <label>
                                <input type="radio" name="illness" value="illnessOn" ${healthInvestigation.disease != null ? 'checked' : ''}>
                                <i class="icon illness-btn"></i>是
                            </label>
                            <label>
                                <input type="radio" name="illness"  ${healthInvestigation.disease == null ? 'checked' : ''}>
                                <i class="icon illness-btn"></i>否
                            </label>
                       </div>
                  </li>
                
                  <li class="descr ${healthInvestigation.disease != null ? 'active' : ''}">
                      <label>请详细描述疾病情况：</label>
                      <textarea name="disease" data-message="请详细描述疾病情况" placeholder="请详细描述疾病情况">${healthInvestigation.disease}</textarea>
                  </li>
                  
                </ul>
                <ul class="health-list">
                  <li class="headlt-list-title">个人健康史(如有以下情况，请勾选并详细描述情况。）：</li>
                  <li data-off="${healthInvestigation.sportInjuries == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.sportInjuries == null ? '' : 'checked'}>
                      <div class="item-media"><i class="icon icon-form-checkbox"></i></div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">您是否有运动损伤？（包括习惯性扭伤，膝盖有疼痛现象，各个关节是否正常，大肌肉群是否有过疼痛）如果有，请勾选并详细描述情况。</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.sportInjuries == null ? '' : 'active'}">
                      <textarea data-message="请填写运动损伤情况" placeholder="请填写运动损伤情况" name="sportInjuries">${healthInvestigation.sportInjuries}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.exerciseHabit == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.exerciseHabit == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">之前是否有运动习惯？以什么运动为主？频率是怎样？（比如跑步，每次30分钟， 每周3次）身体基础体能怎么样？如果有，请勾选并详细描述情况。</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.exerciseHabit == null ? '' : 'active'}">
                      <textarea data-message="请填写运动情况和身体基础体能" placeholder="请填写运动情况和身体基础体能" name="exerciseHabit">${healthInvestigation.exerciseHabit}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.pregnant == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.pregnant == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">是否怀孕？是在哺乳期？几个孩子？（未婚及男性学员请跳过）如果有，请勾选并详细描述情况。</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.pregnant == null ? '' : 'active'}">
                      <textarea data-message="请填写怀孕情况" class="text-left" placeholder="请填写怀孕情况" name="pregnant">${healthInvestigation.pregnant}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.menstruation == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.menstruation == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">请大概描述一下您的大姨妈情况。是否正常？周期几天？上一次大姨妈起止时间？大姨妈前后有无不舒服？（男性学员请跳过）</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.menstruation == null ? '' : 'active'}">
                      <textarea data-message="请填写月经情况" class="text-left" placeholder="请填写月经情况" name="menstruation">${healthInvestigation.menstruation}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.preparePregnant == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.preparePregnant == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">是否在备孕？如是，请简要说明已备孕多久，计划何时要孩子？</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.preparePregnant == null ? '' : 'active'}">
                      <textarea data-message="请填写备孕情况" class="text-left" placeholder="请填写备孕情况" name="preparePregnant">${healthInvestigation.preparePregnant}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.stomach == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.stomach == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">是否有肠胃问题？是否便秘？如果有，请勾选并详细描述情况。</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.stomach == null ? '' : 'active'}">
                      <textarea data-message="请填写肠胃问题" class="text-left" placeholder="请填写肠胃问题" name="stomach">${healthInvestigation.stomach}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.gluttony == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.gluttony == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">是否有暴食经历？是否有过药物减肥经历？是否有过节食减肥经历？如果有，请勾选并详细描述情况。</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.gluttony == null ? '' : 'active'}">
                      <textarea data-message="请填写暴食经历或减肥经历" class="text-left" placeholder="请填写暴食经历或减肥经历" name="gluttony">${healthInvestigation.gluttony}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.foodPreference == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.foodPreference == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">是否有饮食禁忌？饮食偏好如何？比如偏爱甜食或者面食等？如果有，请勾选并详细描述情况。</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.foodPreference == null ? '' : 'active'}">
                      <textarea data-message="请填写饮食习惯" class="text-left" placeholder="请填写饮食习惯" name="foodPreference">${healthInvestigation.foodPreference}</textarea>
                    </div>
                  </li>
                  <li data-off="${healthInvestigation.workArrangements == null ? 'off' : 'on'}">
                    <label class="label-checkbox item-content submenuheader">
                      <input type="checkbox" name="my-radio" ${healthInvestigation.workArrangements == null ? '' : 'checked'}>
                      <div class="item-media">
                        <i class="icon icon-form-checkbox"></i>
                      </div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">是否有时间和条件运动？日常工作时间安排怎么样？如果有，请勾选并详细描述情况</div>  
                        </div>
                      </div>
                    </label>
                    <div class="survey-descr submenu ${healthInvestigation.workArrangements == null ? '' : 'active'}">
                      <textarea data-message="请填写运动条件或工作时间安排" class="text-left" placeholder="请填写" name="workArrangements">${healthInvestigation.workArrangements}</textarea>
                    </div>
                  </li>
                  <li class="descr">
                      <label>其它您认为需要说明的健康问题</label>
                      <textarea class="text-left" name="remarks" placeholder="其他说明">${healthInvestigation.remarks}</textarea>
                  </li>
                  
                </ul>

                <div style="padding: 1rem 0;">
                    <a href="javascript:;" class="button button-fill button-big button-next button-submit">下一步</a>
                </div>
              </div>
            </form>
          </div>
          
        </div>
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/investigation/health-investigation.js" />
    <script type="text/javascript">
      var jsConfig = JSON.parse('${wechatJsConfig}')
      require(['page/investigation/health-investigation'], function(page) {
        page.init({
          jsConfig: jsConfig,
          orderId: '${order.id}'
        })
      })
    </script>
  </body>
</html>